/**
 * @file fileio.h
 *
 *  Created on: Mar 8, 2010
 *      Author: Marco Luisi
 */
//spostarli
#include <stdlib.h>
#include <limits.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <ctype.h>



#ifndef FILEIO_H_
#define FILEIO_H_
#include "mat_funs.h"


#define NAMELEN 8

int loadFile(char*);
char* loadMat(char *,char*);
int parseRow(char *, double *,int);
int toDouble(char *, double *);
int nameCheck(char*);

int saveMats(char *,matrix_l *);
int matToFile(matrix_t *);



#endif /* FILEIO_H_ */
